package com.starlink.model.dtomapper;

import com.starlink.model.domain.MallBooksPaymentDO;
import com.starlink.model.request.MallBooksPaymentRequest;
import com.starlink.model.vo.MallBooksPaymentVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface MallBooksPaymentDtoMapper {

    MallBooksPaymentDtoMapper INSTANCE = Mappers.getMapper(MallBooksPaymentDtoMapper.class);

    /**
    * DO to VO
    * @param mallBooksPaymentDO
    * @return
    */
    MallBooksPaymentVO do2VO(MallBooksPaymentDO mallBooksPaymentDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    MallBooksPaymentDO request2DO(MallBooksPaymentRequest request);
}
